package com.wwl.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wwl.dao.VisitorsMapper;
import com.wwl.entity.Visitors;

@Service
public class VisitorsService {
	@Resource
	VisitorsMapper visitorsMapper;
	
	public List<Visitors> countC(Visitors visitors){
		return visitorsMapper.CountS(visitors);
	}
	public int insert(Visitors visitors){
		return visitorsMapper.insertSelective(visitors);
	}
	public Visitors show(int id){
		return visitorsMapper.selectByPrimaryKey(id);
	}
	public int updateByPrimaryKeySelective(Visitors visitors){
		return visitorsMapper.updateByPrimaryKeySelective(visitors);
	}
}
